PESetMargins

Use PESetMargins to set the page margins for the specified report to the values you supply as parameters. Use this function any time you want to set the printer margins at runtime in response to user specifications.

C Syntax
BOOL CRPE_API PESetMargins (
        short printJob,
        short left,
        short right,
        short top,
        short bottom );
Parameters

For each margin parameter, specify the margin in twips or PM_SM_DEFAULT to use the corresponding default margin for the currently selected printer. See Remarks below.

printJob

Specifies the print job for which you want to set new margins.

left

Specifies the left margin.

right

Specifies the right margin.

top

Specifies the top margin.

bottom

Specifies the bottom margin.

Returns
Remarks
VB Syntax

VB Sample Code for modifying title, options, margins, and date

Declare Function PESetMargins Lib "crpe32.dll" ( ByVal printJob As 
Integer,
    ByVal LeftMargin As Integer, ByVal RightMargin As Integer,
    ByVal TopMargin As Integer, ByVal BottomMargin As Integer ) As Integer
Delphi Syntax
function PESetMargins (
    printJob: Word;
    left: Word;
    right: Word;
    top: Word;
    bottom: Word
    ): Bool stdcall;
dBASE for Windows Syntax
EXTERN CLOGICAL PESetMargins (CWORD, CWORD, CWORD, CWORD, CWORD) 
CRPE.DLL


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com